package com.dq.domain.sys.log;

import com.dq.context.Constant;
import com.dq.domain.base.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;


/**
 * 系统日志
 *
 * @author gewenzhen
 */
@Data
@Entity
@Table(indexes = {@Index(columnList = "applicationName")})
public class SysLog extends BaseEntity {
    //所属系统
    protected String applicationName = Constant.APPLICATION_NAME;
    //用户名
    protected String username;
    //用户操作
    protected String operation;
    //请求方法
    protected String method;
    //请求参数
    @Column(columnDefinition="text")
    protected String params;
    //IP地址
    protected String ip;

}
